<div class="product-list">
    <div style="position: relative">
        <?php
        if(!empty($products)){
            foreach($products as $product){
				
            ?>
            <div class="col-sxs-6 col-sm-4 col-md-3">
                <div class="row">
                    <div class="product-item">
						<a href="/product-detail/<?php echo $product->product_id?>-<?php echo $product->product_alias?>">
                        <div class="nailthumb">
                            <div class="nailthumb-figure">
                                <div class="nailthumb-container">
									
										<img src="<?php echo $product->product_thumb?>" class="flu"  
                                         alt="<?php echo $product->product_title?>"/>
									 
                                </div>
                                <div class="nailthumb-mark"></div>
                            </div>
                        </div>
						</a>
                        <div class="product-info">
                            <div class="product-title"><?php echo $product->product_title?></div>
                            <div class="product-price"><span class="dolar">£</span><?php echo $product->product_price?></div>
                        </div>
                    </div>
                </div>
            </div>
            <?php
            }
			?>
			<div class="clear"></div>
			<div class="menu-title" style="margin-top: -1px;position: relative">
                <span><?php echo ($page-1)*$perpage+1 ?> to  <?php echo ($page-1)*$perpage+count($products) ?> of <?php echo $total_rows ?> result</span>
                <div class="product-page">
                    <span style="float: left">PAGE :</span><?php echo $html_pageper ?>
                </div>
            </div>
			<?php
        }else echo "No data to display.";
        ?>
    </div>
</div>